<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/11/21
 * Time: 23:47
 */
namespace phpfuntions\mp_apache;
class myphp_apache
{
    /**
     *apache_child_terminate 函数：在本次请求结束后终止Apache进程
     * @access public
     * @return
     */
    public static function apache_child_terminate () {
        return apache_child_terminate( );

    }

    /**
     *apache_get_modules 函数：获取Apache的模块列表
     * @access public
     * @return
     */
    public static function apache_get_modules () {
        return apache_get_modules( );

    }

    /**
     *apache_get_version 函数：获取Apache的版本
     * @access public
     * @return
     */
    public static function apache_get_version () {
        return apache_get_version( );

    }

    /**
     * apache_getenv 函数：获取Apache的环境变量　　
     * @access public
     * @return
     */
    public static function apache_getenv ($variable, $walk_to_top = false) {
        return apache_getenv( $variable, $walk_to_top );

    }

    /**
     *apache_lookup_uri 函数：获取特定的URL有关信息　
     * @access public
     * @return
     */
    public static function apache_lookup_uri ($filename) {
        return apache_lookup_uri( $filename);

    }

    /**
     *apache_note 函数：获取或设置Apache请求记录　
     * @access public
     * @return
     */
    public static function apache_note ($note_name, $note_value = '' ) {
        return apache_note( $note_name, $note_value );

    }

    /**
     *apache_request_headers 函数：获取HTTP请求的标头
     * @access public
     * @return
     */
    public static function apache_request_headers () {
        return apache_request_headers( );

    }

    /**
     *apache_response_headers 函数：获取所有HTTP回应标头
     * @access public
     * @return
     */
    public static function apache_response_headers () {
        return apache_response_headers( );

    }

    /**
     *getallheaders 函数：获取所有HTTP变数值　
     * @access public
     * @return
     */
    public static function getallheaders () {
        return getallheaders( );

    }
}